package reflect.bean;

public class User {

    private String  name;//整个一行为field对象
    public int age;
    protected int salary;
    boolean sex;

    public static final double MATH_PI =3.14;

    public User() {
        System.out.println("这是user的无参构造函数");
    }

    public User(String name) {
        this.name = name;
    }

    public User(String name, int age, int salary, boolean sex) {
        this.name = name;
        this.age = age;
        this.salary = salary;
        this.sex = sex;
    }

    @Override
    public String toString() {
        return this.name;
    }
}
